How
the DLL Interfaces with a Performance Monitor Application
An
application retrieves performance data by specifying HKEY_PERFORMANCE_DATA
in a call to the RegQueryValueEx
The first
time an application calls RegQueryValueEx, or if the application uses
the RegOpenKey
When the
application has finished collecting performance data, it specifies HKEY_PERFORMANCE_DATA
in a call to the RegCloseKey
Note It is possible
for multiple programs to collect performance data at the same time. The system
calls Open and Close functions only once for each application requesting
performance data. For remote measurement, the system limits access to these
routines to one thread at a time, so synchronization is not a problem. However,
for local measurement, because multiple processes may be making simultaneous
calls, you must prevent any conflicts from multiple concurrent requests for
data.